//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-02B
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Cody Johnson','Wells Fargo Arena - IA','Des Moines, IA','Friday','5/17/2024','7:30 PM','6030958','Cody-Johnson-5-17-2024'],['Cody Johnson','Fargodome','Fargo, ND','Saturday','5/18/2024','7:30 PM','6028505','Cody-Johnson-5-18-2024'],['Gulf Coast Jam: Morgan Wallen, Jelly Roll & Cody Johnson - 4 Day Pass','Frank Brown Park','Panama City Beach, FL','Thursday','5/30/2024','TBD','5745612','Gulf-Coast-Jam--Morgan-Wallen--Jelly-Roll---Cody-Johnson---4-Day-Pass-5-30-2024'],['Cody Johnson','Smoothie King Center','New Orleans, LA','Friday','5/31/2024','7:30 PM','6028501','Cody-Johnson-5-31-2024'],['CMA Music Festival: Cody Johnson, Jon Pardi, Kelsea Ballerini & Luke Bryan - Friday','Nissan Stadium - Nashville','Nashville, TN','Friday','6/7/2024','7:00 PM','5767905','CMA-Music-Festival--Cody-Johnson--Jon-Pardi--Kelsea-Ballerini---Luke-Bryan---Friday-6-7-2024'],['The Country Fest: Lainey Wilson, Cody Johnson & Thomas Rhett - 4 Day Pass','Clay's Park Resort','North Lawrence, OH','Wednesday','6/12/2024','TBD','5948391','The-Country-Fest--Lainey-Wilson--Cody-Johnson---Thomas-Rhett---4-Day-Pass-6-12-2024'],['Tailgate N Tallboys Music Festival: Cody Johnson, Eric Church, Bailey Zimmerman & Riley Green - 4 Day Pass','Interstate Center - IL','Bloomington, IL','Thursday','6/13/2024','TBD','5983293','Tailgate-N-Tallboys-Music-Festival--Cody-Johnson--Eric-Church--Bailey-Zimmerman---Riley-Green---4-Day-Pass-6-13-2024'],['Tailgate N Tallboys Music Festival: Cody Johnson - Thursday (Time: TBD)','Interstate Center - IL','Bloomington, IL','Thursday','6/13/2024','2:00 PM','5983295','Tailgate-N-Tallboys-Music-Festival--Cody-Johnson---Thursday--Time--TBD--6-13-2024'],['The Country Fest: Cody Johnson & Priscilla Block - Friday','Clay's Park Resort','North Lawrence, OH','Friday','6/14/2024','11:00 AM','5948394','The-Country-Fest--Cody-Johnson---Priscilla-Block---Friday-6-14-2024'],['Country Thunder Bristol: Cody Johnson, Hardy, Bailey Zimmerman & Trace Adkins - 2 Day Pass','Bristol Motor Speedway','Bristol, TN','Friday','6/28/2024','TBD','6017022','Country-Thunder-Bristol--Cody-Johnson--Hardy--Bailey-Zimmerman---Trace-Adkins---2-Day-Pass-6-28-2024']],'"Cody Johnson"','https://www.ticketnetwork.com');